Skip to content

feat(doop): agent frame writes cannot overlap another frame (CHE-6119) - #59

Merged
congvc-bot-x99[bot] merged 2 commits into
mainfrom
agent/x99-claude-sonnet-design/che-6119-577f6ca6bcac
Nov 17, 2026
Merged

congvc-bot-x99[bot] merged 2 commits into
mainfrom
agent/x99-claude-sonnet-design/che-6119-577f6ca6bcac

Conversation

@congvc-bot-x99

Copy link
Copy Markdown

What

CHE-6119: agent writes can no longer leave two frames overlapping on a doop page. The check runs inside the doop server at the write, so direct MCP calls cannot bypass it (the gap behind the open P1 on multica-dotfiles PR #799).

  • server/frameLayout.ts: conflicts (intersect or closer than 40px; hidden frames ignored) and freeSpot (left edge of the page, 80px below the lowest frame).
  • actions.createFrame, agent actors only: an explicit x/y that would sit on another frame is replaced by free space. MCP create_frame returns a placement note.
  • MCP update_frame: a move, resize or page change that would overlap is refused with the conflicting frame ids and the free spot. A rename or lock always passes. Humans in the editor are unchanged.
  • tests/frameApproval.test.ts: the agent resize now grows height (a width of 900 would hit the neighbouring frame, which is now refused).

Test-first evidence (observed)

New tests/frameOverlapGuard.test.ts, end to end through a real server and an MCP agent client.

Red, guard reverted in server/actions.ts and server/mcp.ts:

× create_frame at an overlapping x/y lands in free space and says so
× update_frame refuses a move or resize onto another frame, accepts a clear one, and a rename always passes
AssertionError: expected false to be true
Tests  2 failed | 2 passed (4)

Green, guard restored: Tests 4 passed (4).

Also run: tests/frameApproval, mcp-tools, frameLockActivity, agentToolParity, ingest, community, importCanvasExport, firstCanvasLanding pass. bun run typecheck, lint and format:check pass. The full vitest run on this X99 box shows load-related failures in browser tests (*Browser.test.ts, drawingBrowser) that I did not compare against base; the non-browser ones that failed there pass when run alone.

Not in this PR

Pages already overlapping stay as they are. Frames created in the editor by a person are not moved. Resident (in-app) agent create_frame goes through actions.createFrame, so it gets the same relocation.

🤖 Generated with Claude Code

create_frame at an overlapping x/y lands in free space.
update_frame refuses a move or resize onto another frame and names the free spot.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@congvc-bot-x99
congvc-bot-x99 Bot marked this pull request as ready for review November 17, 2026 12:15
…(CHE-6119)

create_frame with only x or only y now resolves the store default before the overlap check.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@congvc-bot-x99
congvc-bot-x99 Bot added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit 93481ed Nov 17, 2026
11 checks passed
@congvc-bot-x99
congvc-bot-x99 Bot deleted the agent/x99-claude-sonnet-design/che-6119-577f6ca6bcac branch November 17, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants